package com.yjck.fm.spend.dao.handler;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.yjck.fm.spend.bean.SpendInfo;

public class SpendInfoRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {

		SpendInfo spendInfo = new SpendInfo();
		spendInfo.setId(rs.getString("id"));
		spendInfo.setSdate(rs.getString("spenddate"));
		spendInfo.setDesc(rs.getString("spenddesc"));
		spendInfo.setPrice(rs.getString("price"));
		spendInfo.setTypeName(rs.getString("spendname"));
		spendInfo.setType(rs.getString("spendtypeid"));
		return spendInfo;

	}

}
